package com.mall.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/")
public class PageController {

    @RequestMapping("doLoginUI")
    public String doLoginUI() {
        return "login";
    }

    @RequestMapping("doPageUI")
    public String doPageUI() {
        return "common/page";
    }

    @RequestMapping("{module}/{moduleUI}")
    public String doModuleUI(@PathVariable String module, @PathVariable String moduleUI) {
        // System.out.println("==doModuleUI==");
        return module + "/" + moduleUI;
    }
}